package com.heima.pojo.entity;

import cn.hutool.core.text.CharSequenceUtil;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_region")
public class Region {
    @TableId(type = IdType.ASSIGN_ID) // 使用雪花算法生成ID
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id; // 主键
    private String name; //区域名称
    private String remark; //备注
    private Integer nodeCount;


}
